var runtime.gomaxprocs
24 uses
runtime (current package)
debug.go#L22: ret := int(gomaxprocs)
mgc.go#L645: work.stwprocs, work.maxprocs = gomaxprocs, gomaxprocs
mgc.go#L675: gcController.startCycle(now, int(gomaxprocs))
mgc.go#L901: nextTriggerRatio := gcController.endCycle(now, int(gomaxprocs), work.userForced)
mgc.go#L1006: totalCpu := sched.totaltime + (now-sched.procresizetime)*int64(gomaxprocs)
mgc.go#L1130: for gcBgMarkWorkerCount < gomaxprocs {
mgcpacer.go#L798: if gomaxprocs <= 1 {
mgcpacer.go#L807: id := int32(fastrandn(uint32(gomaxprocs - 1)))
mgcscavenge.go#L415: cpuFraction := float64(crit) / ((float64(slept) + crit) * float64(gomaxprocs))
mstats.go#L660: for i := 0; i < int(gomaxprocs); i++ {
proc.go#L1184: sched.stopwait = gomaxprocs
proc.go#L1262: procs := gomaxprocs
proc.go#L1584: sched.safePointWait = gomaxprocs - 1
proc.go#L2377: if sched.npidle == uint32(gomaxprocs-1) && atomic.Load64(&sched.lastpoll) != 0 {
proc.go#L2592: procs := uint32(gomaxprocs)
proc.go#L4727: old := gomaxprocs
proc.go#L4851: var int32p *int32 = &gomaxprocs // make compiler check that gomaxprocs is an int32
proc.go#L5084: if debug.schedtrace <= 0 && (sched.gcwaiting != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs)) {
proc.go#L5086: if atomic.Load(&sched.gcwaiting) != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs) {
proc.go#L5337: print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle, " threads=", mcount(), " spinningthreads=", sched.nmspinning, " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)
proc.go#L5518: n := sched.runqsize/gomaxprocs + 1
proc.go#L6094: if i >= active_spin || ncpu <= 1 || gomaxprocs <= int32(sched.npidle+sched.nmspinning)+1 {
runtime2.go#L1083: gomaxprocs int32